Contents | Index | < Browse | Browse >

LETTERstrstrULETTER Searches a string for a substring.

Overview
#include <string.h>

r = strstr(s,t);

char *r;
const char *s;
const char *t;

Portability
ANSI

Description
Searches the string "s" for the substring "t" and returns its first occurance.

Returns
A pointer to the substring in "s" or NULL.